package com.xingxuecn.limit.dao;

import com.xingxuecn.limit.common.model.dto.Role;
import com.xingxuecn.limit.common.model.vo.Page;

import java.sql.SQLException;
import java.util.List;

/**
 * @author Kris at 2018/9/11 10:23
 */
public interface RoleDao {

    public int add(Role role) throws SQLException;

    public int update(Role role) throws SQLException;

    public int delete(int id) throws SQLException;

    public List<Role> search(Role role,Integer... limit) throws SQLException;
    public Page<Role> searchPage(Role role, int page, int rows) throws SQLException;

    public int count(Role role) throws SQLException;

    List<Role> findAll() throws SQLException;
}
